<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=utf-8" />
    <title>
      6.67.&nbsp;Man-DB-2.7.6.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body class="lfs" id="lfs-8.0">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 8.0
      </h4>
      <h3>
        第六章 安装基本系统软件
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="util-linux.html" title=
          "Util-linux-2.29.1">上一页</a>
          <p>
            Util-linux-2.29.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="tar.html" title="Tar-1.29">下一页</a>
          <p>
            Tar-1.29
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "第六章 安装基本系统软件">返回</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">首页</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-system-man-db" name="ch-system-man-db"></a>6.67.
        Man-DB-2.7.6.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          Man-DB 软件包包含用于查找和浏览 man 页面的程序。
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">构建约需时间：</strong>
              <span class="segbody">0.4 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">需要磁盘空间：</strong>
              <span class="segbody">30 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          6.67.1. 安装 Man-DB
        </h2>
        <p>
          准备编译 Man-DB：
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr                        \
            --docdir=/usr/share/doc/man-db-2.7.6.1 \
            --sysconfdir=/etc                    \
            --disable-setuid                     \
            --enable-cache-owner=bin             \
            --with-browser=/usr/bin/lynx         \
            --with-vgrind=/usr/bin/vgrind        \
            --with-grap=/usr/bin/grap            \
            --with-systemdtmpfilesdir=</kbd>
</pre>
        <div class="variablelist">
          <p class="title">
            <strong>配置选项的含义：</strong>
          </p>
          <dl class="variablelist">
            <dt>
              <span class="term"><em class=
              "parameter"><code>--disable-setuid</code></em></span>
            </dt>
            <dd>
              <p>
                为 <code class="systemitem">man</code> 用户禁止 <span class=
                "command"><strong>man</strong></span> 程序调用 setuid 。
              </p>
            </dd>
            <dt>
              <span class="term"><em class=
              "parameter"><code>--enable-cache-owner=bin</code></em></span>
            </dt>
            <dd>
              <p>
                改变系统缓存文件拥有者为用户 bin 。
              </p>
            </dd>
            <dt>
              <span class="term"><em class=
              "parameter"><code>--with-...</code></em></span>
            </dt>
            <dd>
              <p>
                这三个参数用来设置一些默认程序。
                <span class="command"><strong>lynx</strong></span> 是一个基于文本的网络的网页浏览器（见 BLFS 安装指引），<span class=
                "command"><strong>vgrind</strong></span> 将程序源码转化为 Groff 输入，<span class=
                "command"><strong>grap</strong></span> 在 Groff 文档排版图时非常有用。<span class=
                "command"><strong>vgrind</strong></span> 和 <span class=
                "command"><strong>grap</strong></span> 程序在浏览手册时通常不需要。它们通常不是 LFS 和 BFLS 的一部分，如果你需要的话可以在安装完 LFS 后自行安装。
              </p>
            </dd>
          </dl>
        </div>
        <p>
          编译软件包：
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          测试结果：
        </p>
        <pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
        <p>
          安装软件包：
        </p>
        <pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="sect2" lang="en" xml:l	ang="en">
        <h2 class="sect2">
          6.67.2. LFS 中的非英语手册
        </h2>
        <p>
          下面的表格假定 Man-DB 手册页安装到 <code class=
          "filename">/usr/share/man/&lt;ll&gt;</code> 的编码。除此之外，Man-DB 能检测安装到此目录下的手册是不是 utf-8 编码。
        </p>
        <div class="table">
          <a id="idp46180293418544" name="idp46180293418544"></a>
          <p class="title">
            <strong>表&nbsp;6.1.&nbsp;手册的传统 8 位字符编码</strong>
          </p>
          <div class="table-contents">
            <table summary=
            "Expected character encoding of legacy 8-bit manual pages"
            border="1">
              <colgroup>
                <col width="1.5in" />
                <col width="1in" />
                <col width="2.5in" />
                <col width="1in" />
              </colgroup>
              <thead>
                <tr>
                  <th>
                    语言 (代码)
                  </th>
                  <th>
                    编码
                  </th>
                  <th>
                    语言 (代码)
                  </th>
                  <th>
                    编码
                  </th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>
                    Danish (da)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Croatian (hr)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    German (de)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Hungarian (hu)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    English (en)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Japanese (ja)
                  </td>
                  <td>
                    EUC-JP
                  </td>
                </tr>
                <tr>
                  <td>
                    Spanish (es)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Korean (ko)
                  </td>
                  <td>
                    EUC-KR
                  </td>
                </tr>
                <tr>
                  <td>
                    Estonian (et)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Lithuanian (lt)
                  </td>
                  <td>
                    ISO-8859-13
                  </td>
                </tr>
                <tr>
                  <td>
                    Finnish (fi)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Latvian (lv)
                  </td>
                  <td>
                    ISO-8859-13
                  </td>
                </tr>
                <tr>
                  <td>
                    French (fr)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Macedonian (mk)
                  </td>
                  <td>
                    ISO-8859-5
                  </td>
                </tr>
                <tr>
                  <td>
                    Irish (ga)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Polish (pl)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    Galician (gl)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Romanian (ro)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    Indonesian (id)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Russian (ru)
                  </td>
                  <td>
                    KOI8-R
                  </td>
                </tr>
                <tr>
                  <td>
                    Icelandic (is)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Slovak (sk)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    Italian (it)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Slovenian (sl)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    Norwegian Bokmal (nb)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Serbian Latin (sr@latin)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                </tr>
                <tr>
                  <td>
                    Dutch (nl)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Serbian (sr)
                  </td>
                  <td>
                    ISO-8859-5
                  </td>
                </tr>
                <tr>
                  <td>
                    Norwegian Nynorsk (nn)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Turkish (tr)
                  </td>
                  <td>
                    ISO-8859-9
                  </td>
                </tr>
                <tr>
                  <td>
                    Norwegian (no)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Ukrainian (uk)
                  </td>
                  <td>
                    KOI8-U
                  </td>
                </tr>
                <tr>
                  <td>
                    Portuguese (pt)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Vietnamese (vi)
                  </td>
                  <td>
                    TCVN5712-1
                  </td>
                </tr>
                <tr>
                  <td>
                    Swedish (sv)
                  </td>
                  <td>
                    ISO-8859-1
                  </td>
                  <td>
                    Simplified Chinese (zh_CN)
                  </td>
                  <td>
                    GBK
                  </td>
                </tr>
                <tr>
                  <td>
                    Belarusian (be)
                  </td>
                  <td>
                    CP1251
                  </td>
                  <td>
                    Simplified Chinese, Singapore (zh_SG)
                  </td>
                  <td>
                    GBK
                  </td>
                </tr>
                <tr>
                  <td>
                    Bulgarian (bg)
                  </td>
                  <td>
                    CP1251
                  </td>
                  <td>
                    Traditional Chinese, Hong Kong (zh_HK)
                  </td>
                  <td>
                    BIG5HKSCS
                  </td>
                </tr>
                <tr>
                  <td>
                    Czech (cs)
                  </td>
                  <td>
                    ISO-8859-2
                  </td>
                  <td>
                    Traditional Chinese (zh_TW)
                  </td>
                  <td>
                    BIG5
                  </td>
                </tr>
                <tr>
                  <td>
                    Greek (el)
                  </td>
                  <td>
                    ISO-8859-7
                  </td>
                  <td>
                    &nbsp;
                  </td>
                  <td>
                    &nbsp;
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div><br class="table-break" />
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            注意
          </h3>
          <p>
            手册不支持不在此列表中的语言。
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-man-db" name="contents-man-db"></a>6.67.3. Man-DB 内容
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">安装的程序：</strong>
              <span class="segbody">accessdb, apropos (链接到 whatis),
              catman, lexgrog, man, mandb, manpath, and whatis</span>
            </div>
            <div class="seg">
              <strong class="segtitle">安装的库：</strong>
              <span class="segbody">libman.so and libmandb.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">安装目录：</strong>
              <span class="segbody">/usr/lib/man-db, /usr/lib/tmpfiles.d,
              /usr/libexec/man-db, 和 /usr/share/doc/man-db-2.7.6.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            简要描述
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="accessdb" name="accessdb"></a><span class=
                    "term"><span class=
                    "command"><strong>accessdb</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将 <span class=
                    "command"><strong>whatis</strong></span> 数据库中的内容转储为可阅读格式
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="apropos" name="apropos"></a><span class=
                    "term"><span class=
                    "command"><strong>apropos</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    搜索 <span class=
                    "command"><strong>whatis</strong></span> 数据库并显示含所查找字符串的系统命令的简述
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="catman" name="catman"></a><span class=
                    "term"><span class=
                    "command"><strong>catman</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    创建或更新预格式化的手册页
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lexgrog" name="lexgrog"></a><span class=
                    "term"><span class=
                    "command"><strong>lexgrog</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    显示所提供的手册页的一行概要
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="man" name="man"></a><span class=
                    "term"><span class="command"><strong>man</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    格式化显示请求的手册页
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mandb" name="mandb"></a><span class=
                    "term"><span class=
                    "command"><strong>mandb</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    创建或更新 <span class=
                    "command"><strong>whatis</strong></span> 数据库
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="manpath" name="manpath"></a><span class=
                    "term"><span class=
                    "command"><strong>manpath</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    显示 $MANPATH 或（如果未设置 $MANPATH）基于用户环境中 man.conf 中的合适的搜索路径的内容
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="whatis" name="whatis"></a><span class=
                    "term"><span class=
                    "command"><strong>whatis</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    搜索 <span class=
                    "command"><strong>whatis</strong></span> 数据库并显示含所查找独立关键词的系统命令的简述
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libman" name="libman"></a><span class=
                    "term"><code class="filename">libman</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    包含 <span class=
                    "command"><strong>man</strong></span>命令的运行时支持
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libmandb" name="libmandb"></a><span class=
                    "term"><code class="filename">libmandb</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    包含 <span class=
                    "command"><strong>man</strong></span>命令的运行时支持
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="util-linux.html" title=
          "Util-linux-2.29.1">上一页</a>
          <p>
            Util-linux-2.29.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="tar.html" title="Tar-1.29">下一页</a>
          <p>
            Tar-1.29
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "第六章 安装基本系统软件">返回</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">首页</a>
        </li>
      </ul>
    </div>
  </body>
</html>
